/*
 * inc.h
 *
 *  Created on: 2012-5-24
 *      Author: epmm
 */

#ifndef INC_H_
#define INC_H_

#include <iostream>
#include <string>
#include <deque>
#include <vector>
#include <pthread.h>
#include "jobbase.h"
#include "workthread.h"
#include "threadmutex.h"
#include "threadcondition.h"
#include "worktask.h"

#include <log4cplus/logger.h>
#include <log4cplus/configurator.h>
#include <log4cplus/helpers/loglog.h>
#include <log4cplus/helpers/stringhelper.h>
#include <log4cplus/helpers/sleep.h>
#include <log4cplus/loggingmacros.h>

using namespace std;
using namespace log4cplus;
using namespace log4cplus::helpers;

#ifdef APPENDER
#define APPENDER "FILE"
#else
#define APPENDER "STDOUT"
#endif





#define LOGGER Logger::getInstance(LOG4CPLUS_TEXT(APPENDER))

#define LOG_PRINT_DEBUG(string) LOG4CPLUS_DEBUG(LOGGER,string);
#define LOG_PRINT_WARN(string) LOG4CPLUS_WARN(LOGGER,string);
#define LOG_PRINT_ERROR(string) LOG4CPLUS_ERROR(LOGGER,string);
#define LOG_PRINT_INFO(string) LOG4CPLUS_INFO(LOGGER,string);
#define LOG_PRINT_TRACE(string) LOG4CPLUS_TRACE(LOGGER,string);

#endif /* INC_H_ */
